<%@page language="java" contentType="text/html; charset=UTF-8" %>
<%@page import="com.zhonglee.util.SerialCodeSample, java.util.Map;"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="Admin_Style.css" type=text/css rel=stylesheet>
<title>注册信息查看</title>
</head>
<body>
<%
		Map<String,String> map;
		String strbsSign = request.getParameter("bsSign");
		String strSerialCode = request.getParameter("txtSerialCode");
		if(strbsSign != null && strbsSign.equals("1")){
			SerialCodeSample.matchCode(strSerialCode);
		}
		
		map = SerialCodeSample.getMap();

        String strMachineCode = map.get("machineCode");
		String strUsefulLife = map.get("usefulLife");
		String strTip = map.get("tip");
		if(strSerialCode == null || strSerialCode.equals("0"))
			strSerialCode = map.get("serialCode");

%>
<script>
function btnClose(){
	window.opener=null; 
	window.close();
}
</script>
<script>
function btnRegSet(){
	frmReg.bsSign.value = "1";
    frmReg.submit();
}
</script>

<table cellpadding="2" cellspacing="1" border="0" width="500" class="border" align="center" style="margin-top:60px;">
<FORM name="frmReg" action="sercodeset.jsp" method="post">
  <tr align='center'>
    <td height='22' class='title' colspan="2"><strong>注册信息</strong> <input type="hidden" name="bsSign" value="0"></td>
  </tr>
  <tr>
    <td align="left" class='tdbg'>机器码</a></td>
	<td align="left" class='tdbg'><%=strMachineCode%></td>
  </tr>
  <tr>
    <td align="left" class='tdbg'>序列号</a></td>
	<td align="left" class='tdbg'><input type="text" name="txtSerialCode" size="60" value="<%=strSerialCode%>"></td>
  </tr>  
  <tr>
    <td align="left" class='tdbg'>有效期</a></td>
	<td align="left" class='tdbg'><%=strUsefulLife%></td>
  </tr>  
  <tr>
    <td align="left" class='tdbg'>状态</a></td>
	<td align="left" class='tdbg'><%=strTip%></td>
  </tr>       
  <tr>
    <td width="100%" class="tdbg" align="center" colspan="2"><br>
        <input type="button" value=" 完 成 " onClick="btnClose()">&nbsp;&nbsp;<input type="button" value=" 注 册 " onClick="btnRegSet()">
    </td>
  </tr>
</FORM> 
</table>
</body>
</html>
